package org.esprit.ocm.client.rpc;

import java.util.List;

import org.esprit.ocm.dto.impl.ServerDto;
import org.esprit.ocm.dto.impl.UserDto;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("ServerService.rpc")
public interface ServerService extends RemoteService {

	public ServerDto add(ServerDto _o);

	public List<ServerDto> fetch();

	public void remove(ServerDto _o);

	public int count();
	
	public List<ServerDto> findServerByUser(UserDto _o);
	
	public ServerDto findById(int id);
}
